package lanQiaoBei.基础算法.sort;
import java.lang.*;
import java.util.*;
/*
* 浮点二分 求根号x
* */
public class P4 {
    public static void main(String[] args) {
        Scanner scanner= new Scanner(System.in);
        double x=scanner.nextDouble();
        double l=0,r=x;
        while(r-l>1e-8){
            double mid =(l+r)/2;
            if(mid*mid<=x)l=mid;
            else r=mid;
        }
        System.out.print(l+" ");
        System.out.println(r);
    }
}
